package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysUserPost;
import com.ruoyi.system.mapper.SysPostMapper;
import com.ruoyi.system.mapper.SysUserPostMapper;
import com.ruoyi.system.service.SysUserPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserPostServiceImpl implements SysUserPostService {
    @Autowired
    SysUserPostMapper sysUserPostMapper;
    @Override
    public int inseUserandPost(SysUserPost sysUserPost) {
        return sysUserPostMapper.inseUserandPost(sysUserPost);
    }

    @Override
    public int batchUserPost(List<SysUserPost> userPostList) {
        return sysUserPostMapper.batchUserPost(userPostList);
    }

    @Override
    public int delUserandPost(Long userId) {
        return sysUserPostMapper.delUserandPost(userId);
    }
}
